/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package components;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 *
 * @author havardaxelsen
 */
public class NKeyListener implements ActionListener{

    @Override
    public void actionPerformed(ActionEvent ae) {
        NButton k = (NButton)ae.getSource();
        
        if(k.getText().equals("X")){
            
            System.exit(0);
        }
        else if(k.getText().equals("")){
            
        }
        else if(k.getText().equals("")){
            
        }
        
    }
    
}
